import Vue from 'vue'
export default {
  updateName (state, name) {
    state.name = name
  },
  // 方法
  increment (state) {
    state.counter++
  },
  decrement (state) {
    state.counter--
  },
  updateInfo (state, address) {
    // console.log(state, age , age2)
    Vue.set(state.info, 'address', address)
    // state.info['address'] = address
  }
}
